package com.tangkun.environment.entity.gongzuo;


import com.tangkun.environment.entity.base.BaseModel;

import java.util.List;

/**
 * Created Time: 2017/3/18.
 * <p>
 * Author:tangkun
 * <p>
 * 功能：首页
 */
public class PatientsReturn extends BaseModel {

    public Patients result;

    public static class Patients {
        /**
         * pageIndex : 1
         * pageSize : 1000
         * recordCount : 7
         * items : [{"id":4,"easemobId":"ckd4","headPicture":null,"sex":1,"name":"小敏敏2","namePinyin":null,"hasInfection":true,"followed":true},{"id":5,"easemobId":"ckd5","headPicture":null,"sex":0,"name":"小敏敏3","namePinyin":null,"hasInfection":false,"followed":false},{"id":6,"easemobId":"ckd6","headPicture":null,"sex":0,"name":"小敏敏4","namePinyin":null,"hasInfection":false,"followed":false},{"id":9,"easemobId":"ckd9","headPicture":null,"sex":0,"name":"小敏敏5","namePinyin":null,"hasInfection":false,"followed":true},{"id":10,"easemobId":"ckd10","headPicture":null,"sex":0,"name":"小敏敏6","namePinyin":null,"hasInfection":false,"followed":false},{"id":11,"easemobId":"ckd11","headPicture":null,"sex":0,"name":"小敏敏7","namePinyin":null,"hasInfection":false,"followed":false},{"id":50,"easemobId":"ckd50","headPicture":null,"sex":1,"name":"测试1","namePinyin":"ceshi1","hasInfection":false,"followed":false}]
         */

        public String pageIndex;//第几页
        public String pageSize;//每页数量
        public String recordCount;//总列表长度
        public List<ItemsBean> items;

        public static class ItemsBean {

            /**
             * id : 9
             * easemobId : ckd9
             * headPicture : null
             * sex : 0
             * name : 陈小敏
             * namePinyin : null
             * orgDisease : null
             * implantedDate : null
             * hasInfection : true
             * followed : true
             * birthday : null
             * age : 0
             */

            public String id;
            public String easemobId;
            public String headPicture;
            public int sex;
            public String name;
            public String namePinyin;
            public String orgDisease;
            public String implantedDate;
            public boolean hasInfection;
            public boolean followed;
            public String birthday;
            public int treatmentType;//治疗方式
            public int age;
            public int role = -1;

            public String letter;//非服务器返回字段 用于做通讯录右侧滑动快速定位
            public boolean isSelected;//非服务器返回字段 用于做通讯录右侧滑动快速定位
        }
    }
}
